<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 
<title>html53实现的超炫酷的登录表单</title>
	<link type="text/css" rel="stylesheet" href="Public/layui/css/layui.css" />
<link type="text/css" rel="stylesheet" href="<?php echo (CSS); ?>/index/default.css" />
<!--必要样式-->
<link type="text/css" rel="stylesheet" href="<?php echo (CSS); ?>/index/styles.css" />
<link type="text/css" rel="stylesheet" href="<?php echo (CSS); ?>/index/demo.css" />
<link type="text/css" rel="stylesheet" href="<?php echo (CSS); ?>/index/loaders.css" />
</head>

<body>
<div class='login'>
	<div class='login_title'>
		<span>管理员登录</span>
	</div>
	<div class='login_fields'>
	    <div class='login_fields__user'>
	      <div class='icon'>
	        <img alt="" src="<?php echo (IMAGE); ?>/index/user_icon_copy.png">
	      </div>
	      <input name="login" placeholder='用户名' maxlength="16" type='text' autocomplete="off" value="" id="username"/>
	      <div class='validation'>
	        <img alt="" src="<?php echo (IMAGE); ?>/index/tick.png">
	      </div>
	    </div>
	    <div class='login_fields__password'>
	      <div class='icon'>
	        <img alt="" src='<?php echo (IMAGE); ?>/index/lock_icon_copy.png'>
	      </div>
	      <input name="pwd" placeholder='密码' maxlength="16" type='text' autocomplete="off" id="password">
	      <div class='validation'>
	        <img alt="" src='<?php echo (IMAGE); ?>/index/tick.png'>
	      </div>
	    </div>
	    <div class='login_fields__password'>
	      <div class='icon'>
	        <img alt="" src='<?php echo (IMAGE); ?>/index/key.png'>
	      </div>
	      <input name="code" placeholder='验证码' maxlength="4" type='text' name="ValidateNum" autocomplete="off">
	      <div class='validation' style="opacity: 1; right: -5px;top: -3px;">
          <canvas class="J_codeimg" id="myCanvas" onclick="Code();">对不起，您的浏览器不支持canvas，请下载最新版浏览器!</canvas>
	      </div>
	    </div>
	    <div class='login_fields__submit'>
	      <input type='button' value='登录' id="login">
	    </div>
	</div>
	<div class='success'></div>
	<div class='disclaimer'>
	    <p>欢迎登陆后台管理系统</p>
	</div>
</div>
<div class='authent'>
  <div class="loader" style="height: 44px;width: 44px;margin-left: 28px;">
    <div class="loader-inner ball-clip-rotate-multiple">
        <div></div>
        <div></div>
        <div></div>
    </div>
    </div>
  <p>验证登录中...</p>
</div>
<div class="OverWindows"></div>

<script type="text/javascript" src="Public/jquery.min.js"></script>
<script type="text/javascript" src="Public/jquery-ui.min.js"></script>
<script type="text/javascript" src="Public/layer/layer.js"></script>
<script type="text/javascript" src="Public/layui/layui.js"></script>
<script type="text/javascript" src="Public/tool.js"></script>
<script type="text/javascript" src='<?php echo (JS); ?>/index/stopExecutionOnTimeout.js?t=1'></script>
<script type="text/javascript" src="<?php echo (JS); ?>/index/particleground.js"></script>
<script type="text/javascript" src="<?php echo (JS); ?>/index/treatment.js"></script>
<script type="text/javascript" src="<?php echo (JS); ?>/index/jquery.mockjax.js"></script>
<script type="text/javascript" src="<?php echo (JS); ?>/index/index.js"></script>
<script type="text/javascript">
var canGetCookie = 0;//是否支持存储Cookie 0 不支持 1 支持
var CodeVal = 0;
Code();
function Code() {
	if(canGetCookie == 1){
		createCode("AdminCode");
		var AdminCode = getCookieValue("AdminCode");
		showCheck(AdminCode);
	}else{
		showCheck(createCode(""));
	}
}
function showCheck(a) {
	CodeVal = a;
    var c = document.getElementById("myCanvas");
    var ctx = c.getContext("2d");
    ctx.clearRect(0, 0, 1000, 1000);
    ctx.font = "80px 'Hiragino Sans GB'";
    ctx.fillStyle = "#E8DFE8";
    ctx.fillText(a, 0, 100);
}
//粒子背景特效
$('body').particleground({
    dotColor: '#E8DFE8',
    lineColor: '#133b88'
});
</script>
</body>
</html>